﻿

Public Class cLocalesCreatureTemplate
    Private _Row As SortedList(Of String, sMysqlItem)
    Private _loc As UInt32

    Public Sub New(conn As MySQL, entry As UInt32, loc As UInt32)
        _loc = loc
        If IsNothing(conn) Then Throw New ArgumentNullException("cLocalesCreatureTemplate: conn is nothing")
        Dim sql As String = "SELECT entry,name_loc" & loc & ",subname_loc" & loc & " FROM locales_creature WHERE entry=" & entry & ";"
        _Row = conn.ReadRow(sql)
    End Sub

    Public Property name As String
        Get
            Return _Row.Item("name_loc" & _loc).Value
        End Get
        Set(value As String)
            Stop
        End Set
    End Property
    Public Property subname As String
        Get
            Return _Row.Item("subname_loc" & _loc).Value
        End Get
        Set(value As String)
            Stop
        End Set
    End Property

End Class
